/**  
 * All rights Reserved, Designed By www.tydic.com
 * @Title:  TaskService.java   
 * @Package com.axin.service   
 * @Description:    TODO(用一句话描述该文件做什么)   
 * @author: axin     
 * @date:   2019年4月21日 下午4:07:16   
 * @version V1.0 
 * @Copyright: 2019 www.hao456.top Inc. All rights reserved. 
 */
package com.axin.service;

import java.util.List;

import com.axin.common.entity.ApiToken;
import com.axin.common.entity.DataGridResult;
import com.axin.common.entity.PageObject;
import com.axin.entity.HbTask;

/**   
 * @Description: TODO 
 * @ClassName:  TaskService
 * @author:  Axin 
 * @date:   2019年4月21日 下午4:07:16   
 * @Copyright: 2019 www.hao456.top Inc. All rights reserved. 
 */
public interface TaskService {
	
	
	HbTask getTaskById(Long id);
	
	List<HbTask> getUnClosedTaskBySymbol(Long userId, String symbol);
	
	void saveTask(Long userId, HbTask task);
	
	
	DataGridResult getListByParam(PageObject page,HbTask task);
	
	
	
	void updateTaskById(HbTask task, Long userId);
	
	void closeTaskById(Long id);
	
	void updateTaskById(HbTask task,ApiToken token);
	
	
	void sellById(ApiToken token,Long userId,Long id);

}
